09666f64e5da56f16504017292b5b5bc1b07faa5,plugins/entando-plugin-jpuserreg/src/main/java/com/agiletec/plugins/jpuserreg/apsadmin/config/UserRegConfigAction.java,UserRegConfigAction,checkAuthorities,#Collection#IApsAuthorityManager#String#,81
Before Change
while (authIter.hasNext()) {
String authName = authIter.next();
if (authorityManager.getAuthority(authName)==null) {
this.addFieldError(fieldName, this.getText("jpuserreg.errors.authority.notFound", new String[] { this.getText(fieldName), authName }));
}
}
}
After Change
if (null == groupName
|| null == getGroupManager().getGroup(groupName)
|| (roleName != null && null == this.getRoleManager().getRole(roleName))) {
this.addFieldError("config.defaultCsvAuthorizations", this.getText("jpuserreg.errors.authority.invalid", new String[] { groupName, roleName }));
}
}
}